package leetcode.singles;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * @Author: Liu Yue
 * @Descripition:
 * @Date; Create in 2020/2/26 21:41
 **/
public class LazyStaticInnerTest {

    public static void main(String[] args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Class<?> clazz = LazyStaticinnerClassSingle.class;
        Constructor<?> declaredConstructor = clazz.getDeclaredConstructor(null);
        declaredConstructor.setAccessible(true);

        Object o = declaredConstructor.newInstance();
        Object o1 = declaredConstructor.newInstance();

        System.out.println(o);
        System.out.println(o1);

    }
}
